﻿using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using Jy123.Common;

namespace Jy123.Web.Manage.User
{
    /// <summary>
    /// $codebehindclassname$ 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class AutoLogin : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            string[] strid = context.Request.Url.ToString().Split('?');
            Common.
            Cookie.SetCookie("UserID", strid[1]);
            //Cookie.SetCookie("UserName", userName);
            //Cookie.SetCookie("UserEmail", email);
            context.Response.Redirect("/home/", true);

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}
